/*
 * author      : 吴中勤 
 * date        : 2018/8/16
 * description : TODO
 */

package com.deepexi.adapter.sdk.sap.dto.bp;

import com.deepexi.adapter.sdk.sap.SapBizConst;
import com.deepexi.adapter.sdk.sap.dto.bp.create.BPCreateInputVO;
import com.google.gson.annotations.SerializedName;

public class BPOutputVO extends BPCreateInputVO {
    @SerializedName("MESSAGE")
    private String message;      // 响应msg

    @SerializedName("SUBRC")
    private int code;            // 响应

    public boolean isOk() {
        return SapBizConst.RESPONSE_SUBRC_OK.equals(code + "");
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
